<!-- @format -->
<script setup>
	import { inject } from 'vue'

	// 获取爷爷给的小目标
	const money = inject('qian')
</script>

<template>
	<div class="my-child">
		<h3>MyChild组件</h3>
		<p>收到来自爷爷的小目标 = {{ money }}</p>
	</div>
</template>

<style scoped>
	.my-child {
		padding: 20px;
		background: palegoldenrod;
	}
</style>
